<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
<script>
    // var obj = document.querySelector(".box");
    // console.log(obj.innerText);
    $(document).ready(function () {
        console.log($(".box").text());
        console.log(jQuery(".box").text());
    });

    $(function (){
        console.log($(".box").text());
        console.log(jQuery(".box").text());
    });
</script>
</head>
<body>
    <div class="box">好好学习，天天向上</div>


</body>
</html>